﻿using System;

/*
 *Write a program that shows the sign (+ or -) of the product of 
 *three real numbers without calculating it. Use a sequence of if statements.
 */

class SignOfProductOfRealNumbers
{
    static void Main(string[] args)
    {
        double a = 5.13;
        double b = -3.2;
        double c = 4;
        Console.WriteLine("Values: a = {0} , b= {1} , c= {2}", a, b,c);
        
        int countOfNegativeNumbers = 0;

        if (a < 0)
        {
            countOfNegativeNumbers++;
        }
        if (b < 0)
        {
            countOfNegativeNumbers++;
        }
        if (c < 0)
        {
            countOfNegativeNumbers++;
        }

        if ((countOfNegativeNumbers % 2) == 0)
        {
            Console.WriteLine("The sign of the product of a * b * c is: +");
        }
        else
        {
            Console.WriteLine("The sign of the product of a * b * c is: -");
        }

    }
}

